package lingnan.service;

import lingnan.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Component
@FeignClient("provider-order")
public interface OrderFeignService {
    @GetMapping("/order/findAllOrders")
    List<Order> findAllOrder();

    @DeleteMapping("/order/{id}")
    Boolean deleteById(@PathVariable("id") String id);

    @PostMapping("/order/save")
    Order save(@RequestBody Order order);

}
